package com.etc.delivery.service.admin;

import com.etc.delivery.entity.Warehouse;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAdminWarehouseService {

    public PageInfo<Warehouse> queryWarehouse(String name, String address, Integer pageNum, Integer pageSize);

    public List<Warehouse> queryWarehouseName();

    public List<Warehouse> queryDeletedWarehouse(String name, String address);

    public boolean addWarehouse(Warehouse warehouse);

    public boolean deleteWarehouse(Integer id);

    public boolean resumeWarehouse(Integer id);

    public boolean writeOff(Integer id);

    public boolean updateWarehouse(Warehouse warehouse);

    public List<Warehouse> queryWarehousePhone(String phone);

}
